//
//  zcVideoEntrance.h
//  智能控制系统
//
//  Created by Rankin on 15/12/2.
//
//
//释放内存
#if __has_feature(objc_arc)
#define GZCZ_STRONG strong
#define HK_OBJECT_NULL(__POINTER) { if(__POINTER) { __POINTER = nil; } }
#define HK_TIMER_NULL(__TIMER) { if(__TIMER) { [__TIMER invalidate]; __TIMER = nil; } }
#else
#define GZCZ_STRONG retain
#define HK_OBJECT_NULL(__POINTER) { if(__POINTER) { [__POINTER release];__POINTER = nil; } }
#define HK_TIMER_NULL(__TIMER) { if(__TIMER) { [__TIMER invalidate]; [__TIMER release]; __TIMER = nil; } }
#endif


#import <Foundation/Foundation.h>
#import <Cordova/CDVPlugin.h>
#import "zcVideoViewController.h"
#import "ZcVideoPreviewViewController.h"

@interface ZcVideo  : CDVPlugin
@property(nonatomic, strong) NSTimer *updateSearchDataTimer;
@property(nonatomic, assign) int updateSearchCount;
@property(nonatomic, retain) NSMutableArray *searchDevices;
@property (nonatomic) NSString* callbackId;
@property (nonatomic) NSString* searchHistoryCallbackId;
@property (nonatomic) NSMutableArray* recfiles;

- (void)showVideoView:(CDVInvokedUrlCommand*)command;
- (void)search:(CDVInvokedUrlCommand*)command;
- (void)searchVideo:(CDVInvokedUrlCommand*)command;
- (void)playVideo:(CDVInvokedUrlCommand*)command;
- (void)changePwd:(CDVInvokedUrlCommand*)command;
- (void)connect:(CDVInvokedUrlCommand*)command;
@end
